/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package is.ru.domain;

import java.util.List;

/**
 *
 * @author davidhalldor
 */
public class Course {
    
    private String name;

    private List<Ingredient> ingredientsList;
    
    private List<Course> sideCoursesList;
    
    public Course() {
    }

    public List<Ingredient> getIngredientsList() {
        return ingredientsList;
    }

    public void setIngredientsList(List<Ingredient> ingredientsList) {
        this.ingredientsList = ingredientsList;
    }

    public List<Course> getSideCoursesList() {
        return sideCoursesList;
    }

    public void setSideCoursesList(List<Course> sideCoursesList) {
        this.sideCoursesList = sideCoursesList;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    @Override
    public boolean equals(Object o) {
        if (o instanceof Course) {
            Course c = (Course) o;
            if (this.name.equals(c.name)) return true;
        }
        return false;
    }
}
